package cn.itrip.dao;

import cn.itrip.DTO.ItripListHotelOrderDTO;
import cn.itrip.DTO.ItripPersonalOrderRoomDTO;
import cn.itrip.entity.ItripHotelOrder;
import cn.itrip.utils.Page;
import cn.itrip.vo.biz.ItripSearchOrderVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ItripHotelOrderMapper extends BaseMapper<ItripHotelOrder> {
    ItripHotelOrder getItripHotelOrderByOrderNo(String orderNo);
    Integer updateHotelOrderStatus(@Param(value = "id") Long id, @Param(value = "modifiedBy") Long modifiedBy) throws Exception;
    Integer updateItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;
    Integer insertItripHotelOrder(ItripHotelOrder itripHotelOrder) throws Exception;
    ItripHotelOrder getItripHotelOrderById(@Param(value = "id") Long id) throws Exception;
    Integer getOrderCountByMap(ItripSearchOrderVO itripSearchOrderVO) throws Exception;
    List<ItripListHotelOrderDTO> getOrderListByMap(ItripSearchOrderVO itripSearchOrderVO) throws Exception;
    ItripPersonalOrderRoomDTO getItripHotelOrderRoomInfoById(@Param(value = "id") Long id) throws Exception;
}
